Skip to content

Commit 513297c

Browse files
committed
Add original test that caused the whole rewrite
1 parent 57722f7 commit 513297c

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/pos/i3488.scala

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package test
2+
3+
class Sett[A] {
4+
5+
def incl(elem: A): Sett[A] = ???
6+
7+
inline final def + (elem: A): Sett[A] = incl(elem)
8+
}
9+
10+
object Sett {
11+
def apply[A](elems: A*): Sett[A] = ???
12+
}
13+
14+
class Test {
15+
Sett(1) + 1
16+
}

0 commit comments

Comments
 (0)