Skip to content

Infinite loop in compiler #7526

Closed
Closed
@flomebul

Description

@flomebul

minimized code

type Tr[-I, +O, +A] = I => (O, A)

trait NetApi with
  type Comp

trait NetDB extends NetApi with
  class Comp

trait NetHelper extends NetApi

def compQ(name: => String)
    : (given n: NetApi) => Tr[Nothing, n.Comp, n.Comp] = ???

object net extends NetDB with NetHelper
import net._
given n: NetApi = net

val q: Tr[Nothing, Comp, Comp] = compQ("???")

expectation

the compiler does not end with the last line of code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions