-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
Milestone
Description
Compiler version
3.3.0-RC1
Minimized code
scala> type F[X <: String] = X
// defined alias type F[X <: String] = X
scala> val a = summon[F[Int] =:= Int]
val a: Int =:= Int = generalized constraint
Output
Works. Both in REPL and Compiler.
Expectation
-- [E057] Type Mismatch Error: -------------------------------------------------
|val a = summon[F[Int] =:= Int]
| ^
| Type argument Int does not conform to upper bound String