File tree 2 files changed +11
-1
lines changed
compiler/src/dotty/tools/dotc/ast
2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -946,7 +946,7 @@ object desugar {
946
946
tree.withMods(mods)
947
947
else if tree.name.startsWith(" $" ) && ! tree.isBackquoted then
948
948
report.error(
949
- """ Quoted pattern variable names starting with $ are not suported anymore.
949
+ """ Quoted pattern variable names starting with $ are not supported anymore.
950
950
|Use lower cases type pattern name instead.
951
951
|""" .stripMargin,
952
952
tree.srcPos)
Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments