File tree 2 files changed +5
-5
lines changed
src/dotty/tools/dotc/reporting/diagnostic
test/dotty/tools/dotc/reporting 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -2383,17 +2383,17 @@ object messages {
2383
2383
val explanation : String = " "
2384
2384
}
2385
2385
2386
- case class ImplicitTypesCanOnlyBeFunctionTypes ()(implicit val ctx : Context )
2386
+ case class ImplicitTypesCanOnlyBeFunctionTypes ()(implicit val ctx : Context ) // TODO remove when (given ...) => is removed
2387
2387
extends Message (ImplicitTypesCanOnlyBeFunctionTypesID ) {
2388
2388
val kind : String = " Syntax"
2389
- val msg : String = " Types with given keyword can only be function types `given ( ...) => ...`"
2389
+ val msg : String = " Types with given keyword can only be function types `( given ...) => ...`"
2390
2390
val explanation : String = " "
2391
2391
}
2392
2392
2393
2393
case class ErasedTypesCanOnlyBeFunctionTypes ()(implicit val ctx : Context )
2394
2394
extends Message (ErasedTypesCanOnlyBeFunctionTypesID ) {
2395
2395
val kind : String = " Syntax"
2396
- val msg : String = " Types with erased keyword can only be function types `erased ( ...) => ...`"
2396
+ val msg : String = " Types with erased keyword can only be function types `( erased ...) => ...`"
2397
2397
val explanation : String = " "
2398
2398
}
2399
2399
Original file line number Diff line number Diff line change @@ -1699,7 +1699,7 @@ class ErrorMessagesTests extends ErrorMessagesTest {
1699
1699
implicit val ctx : Context = ictx
1700
1700
assertMessageCount(1 , messages)
1701
1701
val ImplicitTypesCanOnlyBeFunctionTypes () :: Nil = messages
1702
- assertEquals(" Types with given keyword can only be function types `given ( ...) => ...`" , messages.head.msg)
1702
+ assertEquals(" Types with given keyword can only be function types `( given ...) => ...`" , messages.head.msg)
1703
1703
}
1704
1704
1705
1705
@ Test def erasedTypesCanOnlyBeFunctionTypesFailed () =
@@ -1708,7 +1708,7 @@ class ErrorMessagesTests extends ErrorMessagesTest {
1708
1708
implicit val ctx : Context = ictx
1709
1709
assertMessageCount(1 , messages)
1710
1710
val ErasedTypesCanOnlyBeFunctionTypes () :: Nil = messages
1711
- assertEquals(" Types with erased keyword can only be function types `erased ( ...) => ...`" , messages.head.msg)
1711
+ assertEquals(" Types with erased keyword can only be function types `( erased ...) => ...`" , messages.head.msg)
1712
1712
}
1713
1713
1714
1714
@ Test def caseClassMissingParamListSuccessful =
You can’t perform that action at this time.
0 commit comments