File tree Expand file tree Collapse file tree 1 file changed +10
-19
lines changed
compiler/test/dotty/tools/dotc/typer Expand file tree Collapse file tree 1 file changed +10
-19
lines changed Original file line number Diff line number Diff line change 1- // filepath: /home/mberndt/scala3/compiler/test/dotty/tools/dotc/typer/SIP67Tests.scala
21package dotty .tools .dotc .typer
32
43import dotty .tools .DottyTest
@@ -7,46 +6,38 @@ import dotty.tools.dotc.core.Contexts.*
76import org .junit .Test
87import org .junit .Assert .fail
98
10- class SIP67Tests extends DottyTest {
11-
9+ class SIP67Tests extends DottyTest :
1210
1311 @ Test
14- def sip67test1 : Unit = {
12+ def sip67test1 : Unit =
1513 val source = """
1614 import scala.language.strictEquality
17- enum Foo {
15+ enum Foo:
1816 case Bar
19- }
2017
2118 val _ =
22- (??? : Foo) match {
19+ (??? : Foo) match
2320 case Foo.Bar =>
24- }
2521 """
26- val ctx = checkCompile(" typer" , source) { (_, ctx) => }
22+ val ctx = checkCompile(" typer" , source)((_, ctx) => ())
23+
2724 if ctx.reporter.hasErrors then
2825 fail(" Unexpected compilation errors were reported" )
29- }
3026
3127 @ Test
32- def sip67test2 : Unit = {
28+ def sip67test2 : Unit =
3329 val source = """
3430 import scala.language.strictEquality
3531
3632 sealed trait Foo
3733
38- object Foo {
34+ object Foo:
3935 case object Bar extends Foo
40- }
4136
4237 val _ =
43- (??? : Foo) match {
38+ (??? : Foo) match
4439 case Foo.Bar =>
45- }
4640 """
47- val ctx = checkCompile(" typer" , source) { ( _, ctx) => }
41+ val ctx = checkCompile(" typer" , source)(( _, ctx) => ())
4842 if ctx.reporter.hasErrors then
4943 fail(" Unexpected compilation errors were reported" )
50- }
51-
52- }
You can’t perform that action at this time.
0 commit comments