We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5abb82b commit 5a4fac8Copy full SHA for 5a4fac8
tests/pos/i9531.scala
@@ -0,0 +1,10 @@
1
+trait Scope:
2
+ type Expr[+T]
3
+
4
+def exprQuote[T](x: T)(using s: Scope, dummy: Null = null): s.Expr[T] = ???
5
+def exprQuote[T <: Singleton](x: T)(using s: Scope): s.Expr[T] = ???
6
7
+def test(using s: Scope): Unit =
8
+ val t1: s.Expr[1] = exprQuote(1)
9
+ val t2 = exprQuote(1)
10
+ val t3: s.Expr[1] = t2
0 commit comments