Skip to content

Commit 267b9ce

Browse files
authored
Merge pull request #111 from scala/backport-lts-3.3-21957
Backport "Handle old given syntax where identifier and type are seperated by new line" to 3.3 LTS
2 parents edaed8e + 3fe6244 commit 267b9ce

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

tests/patmat/null.check

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
6: Pattern Match
22
13: Pattern Match
3-
20: Pattern Match
4-
21: Match case Unreachable
3+
20: Match case Unreachable
4+
21: Pattern Match

tests/pos/i21768.scala

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
2+
trait Foo[T]:
3+
def foo(v: T): Unit
4+
5+
given myFooOfInt:
6+
Foo[Int] with
7+
def foo(v: Int): Unit = ???
8+
9+
given myFooOfLong:
10+
Foo[Long] = new Foo[Long] {
11+
def foo(v: Long): Unit = ???
12+
}

0 commit comments

Comments
 (0)