-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
area:exportarea:extension-methodsitype:bugregressionThis worked in a previous version but doesn't anymoreThis worked in a previous version but doesn't anymore
Description
Compiler version
v3.2.0-RC1 - error
v3.1.3-RC4 - OK
Minimized code
object Cont:
extension [T <: Int & Singleton](x: T) inline def foo: Unit = {}
extension (x: Int) inline def foo: Unit = {}
export Cont.*
object Test:
var x = 1
x.foo
Output
An extension method was tried, but could not be fully constructed:
foo[T](x) failed with
Found: (x : Int)
Required: Int & Singleton
Expectation
No error.
Metadata
Metadata
Assignees
Labels
area:exportarea:extension-methodsitype:bugregressionThis worked in a previous version but doesn't anymoreThis worked in a previous version but doesn't anymore