Skip to content

Commit 5a4fac8

Browse files
committed
Add regression test
Closes #9531
1 parent 5abb82b commit 5a4fac8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/pos/i9531.scala

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)