File tree 2 files changed +4
-4
lines changed
compiler/src/dotty/tools/dotc/core
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -3509,7 +3509,7 @@ object Types {
3509
3509
def expectValueTypeOrWildcard (tp : Type , where : => String )(using Context ): Unit =
3510
3510
if ! tp.isValueTypeOrWildcard then
3511
3511
assert(! ctx.isAfterTyper, where) // we check correct kinds at PostTyper
3512
- throw TypeError (em " $tp is not a value type, cannot be used in $where" )
3512
+ throw TypeError (em " $tp is not a value type, cannot be used $where" )
3513
3513
3514
3514
/** An extractor object to pattern match against a nullable union.
3515
3515
* e.g.
Original file line number Diff line number Diff line change 1
1
-- Error: tests/neg/i16696.scala:7:29 ----------------------------------------------------------------------------------
2
2
7 | val boom1 = BoxMaker[Some].make1 // error
3
3
| ^
4
- | Some is not a value type, cannot be used in in intersection Some & Int
4
+ | Some is not a value type, cannot be used in intersection Some & Int
5
5
-- Error: tests/neg/i16696.scala:8:29 ----------------------------------------------------------------------------------
6
6
8 | val boom2 = BoxMaker[Some].make2 // error
7
7
| ^
8
- | Some is not a value type, cannot be used in in union Some | Int
8
+ | Some is not a value type, cannot be used in union Some | Int
9
9
-- Error: tests/neg/i16696.scala:20:27 ---------------------------------------------------------------------------------
10
10
20 | val boom = BoxMaker[Foo].make(_.foo) // error
11
11
| ^
12
- | test2.Foo is not a value type, cannot be used in in intersection R & test2.Foo
12
+ | test2.Foo is not a value type, cannot be used in intersection R & test2.Foo
You can’t perform that action at this time.
0 commit comments