Skip to content

Commit bfcd406

Browse files
authored
Merge pull request #8160 from dotty-staging/add-regression-tasty-tags-obscure
Add pos test to generate rare tasty tags
2 parents bbd0c5f + 7f4201f commit bfcd406

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

tests/pos/tasty-tags-obscure.scala

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
object ObscureTasty
2+
3+
def foo(f: [t] => List[t] ?=> Unit) = ???
4+
def test1 = foo([t] => (a: List[t]) ?=> ()) // POLYtype => GIVENMETHODType
5+
def bar(f: [t] => List[t] => Unit) = ???
6+
def test2 = bar([t] => (a: List[t]) => ()) // POLYtype => METHODType
7+
8+
class Bar
9+
final val bar = "Bar.bar"
10+
11+
class Foo extends Bar
12+
object A
13+
def unapply(a: Any): Some[Foo.super.bar.type] = ???
14+
15+
def foo =
16+
"" match
17+
case A(x) => x // SUPERtype

0 commit comments

Comments
 (0)