You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -1201,6 +1214,9 @@ class RequirementsSpec extends FunSpec with Requirements with OptionValues {
1201
1214
""".stripMargin)
1202
1215
}
1203
1216
1217
+
// SKIP-DOTTY-START
1218
+
// ambiguous implicit:
1219
+
// both method convertToCheckingEqualizer in trait TypeCheckedTripleEquals and method convertToEqualizer in trait TripleEquals provide an extension method `===` on String(org)
1204
1220
it("should compile when used with org === xxx with TypeCheckedTripleEquals that shadow org.scalactic") {
1205
1221
assertCompiles(
1206
1222
"""
@@ -1212,6 +1228,7 @@ class RequirementsSpec extends FunSpec with Requirements with OptionValues {
1212
1228
|}
1213
1229
""".stripMargin)
1214
1230
}
1231
+
// SKIP-DOTTY-END
1215
1232
1216
1233
it("should compile when used with org.aCustomMethod that shadow org.scalactic") {
1217
1234
assertCompiles(
@@ -1350,18 +1367,18 @@ class RequirementsSpec extends FunSpec with Requirements with OptionValues {
1350
1367
assert(e.getMessage == didNotEqual(a, b) +", dude")
1351
1368
}
1352
1369
1353
-
it("should throw IllegalArgumentException when is used to check a == null") {
1370
+
it("should throw IllegalArgumentException when is used to check a == -1") {
@@ -2347,6 +2371,9 @@ class RequirementsSpec extends FunSpec with Requirements with OptionValues {
2347
2371
""".stripMargin)
2348
2372
}
2349
2373
2374
+
// SKIP-DOTTY-START
2375
+
// ambiguous implicit:
2376
+
// both method convertToCheckingEqualizer in trait TypeCheckedTripleEquals and method convertToEqualizer in trait TripleEquals provide an extension method `===` on String(org)
2350
2377
it("should compile when used with org === xxx with TypeCheckedTripleEquals that shadow org.scalactic") {
2351
2378
assertCompiles(
2352
2379
"""
@@ -2358,6 +2385,7 @@ class RequirementsSpec extends FunSpec with Requirements with OptionValues {
2358
2385
|}
2359
2386
""".stripMargin)
2360
2387
}
2388
+
// SKIP-DOTTY-END
2361
2389
2362
2390
it("should compile when used with org.aCustomMethod that shadow org.scalactic") {
2363
2391
assertCompiles(
@@ -2467,18 +2495,18 @@ class RequirementsSpec extends FunSpec with Requirements with OptionValues {
2467
2495
assert(e.getMessage == didNotEqual(a, b))
2468
2496
}
2469
2497
2470
-
it("should throw IllegalStateException when is used to check a == null") {
2498
+
it("should throw IllegalStateException when is used to check a == -1") {
2471
2499
vale= intercept[IllegalStateException] {
2472
-
requireState(a ==null)
2500
+
requireState(a ==-1)
2473
2501
}
2474
-
assert(e.getMessage == didNotEqual(a, null))
2502
+
assert(e.getMessage == didNotEqual(a, -1))
2475
2503
}
2476
2504
2477
-
it("should throw IllegalStateException when is used to check null == a") {
2505
+
it("should throw IllegalStateException when is used to check -1 == a") {
2478
2506
vale= intercept[IllegalStateException] {
2479
-
requireState(null== a)
2507
+
requireState(-1== a)
2480
2508
}
2481
-
assert(e.getMessage == didNotEqual(null, a))
2509
+
assert(e.getMessage == didNotEqual(-1, a))
2482
2510
}
2483
2511
2484
2512
it("should do nothing when is used to check a === 3") {
@@ -2779,6 +2807,8 @@ class RequirementsSpec extends FunSpec with Requirements with OptionValues {
2779
2807
}
2780
2808
if (ScalacticVersions.BuiltForScalaVersion=="2.12"||ScalacticVersions.BuiltForScalaVersion=="2.13")
@@ -3453,6 +3488,9 @@ class RequirementsSpec extends FunSpec with Requirements with OptionValues {
3453
3488
""".stripMargin)
3454
3489
}
3455
3490
3491
+
// SKIP-DOTTY-START
3492
+
// ambiguous implicit:
3493
+
// both method convertToCheckingEqualizer in trait TypeCheckedTripleEquals and method convertToEqualizer in trait TripleEquals provide an extension method `===` on String(org)
3456
3494
it("should compile when used with org === xxx with TypeCheckedTripleEquals that shadow org.scalactic") {
3457
3495
assertCompiles(
3458
3496
"""
@@ -3464,6 +3502,7 @@ class RequirementsSpec extends FunSpec with Requirements with OptionValues {
3464
3502
|}
3465
3503
""".stripMargin)
3466
3504
}
3505
+
// SKIP-DOTTY-END
3467
3506
3468
3507
it("should compile when used with org.aCustomMethod that shadow org.scalactic") {
3469
3508
assertCompiles(
@@ -3602,18 +3641,18 @@ class RequirementsSpec extends FunSpec with Requirements with OptionValues {
3602
3641
assert(e.getMessage == didNotEqual(a, b) +", dude")
3603
3642
}
3604
3643
3605
-
it("should throw IllegalStateException when is used to check a == null") {
3644
+
it("should throw IllegalStateException when is used to check a == -1") {
@@ -4599,6 +4645,9 @@ class RequirementsSpec extends FunSpec with Requirements with OptionValues {
4599
4645
""".stripMargin)
4600
4646
}
4601
4647
4648
+
// SKIP-DOTTY-START
4649
+
// ambiguous implicit:
4650
+
// both method convertToCheckingEqualizer in trait TypeCheckedTripleEquals and method convertToEqualizer in trait TripleEquals provide an extension method `===` on String(org)
4602
4651
it("should compile when used with org === xxx with TypeCheckedTripleEquals that shadow org.scalactic") {
4603
4652
assertCompiles(
4604
4653
"""
@@ -4610,6 +4659,7 @@ class RequirementsSpec extends FunSpec with Requirements with OptionValues {
4610
4659
|}
4611
4660
""".stripMargin)
4612
4661
}
4662
+
// SKIP-DOTTY-END
4613
4663
4614
4664
it("should compile when used with org.aCustomMethod that shadow org.scalactic") {
0 commit comments