Skip to content

Commit 83565cc

Browse files
authored
Merge pull request #10963 from griggt/fix-#6665
Fix #6665: Add regression test
2 parents 141bf9e + d6684a3 commit 83565cc

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

tests/pos/i6665/Bad_2.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package foo
2+
import foo._
3+
object A extends Oops
4+
object B extends Oops

tests/pos/i6665/Oops_1.scala

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package foo
2+
3+
trait TOops
4+
{
5+
def oops: Unit ?=> Unit
6+
}
7+
8+
trait Oops extends TOops
9+
{
10+
override def oops: Unit ?=> Unit = (x) ?=> x
11+
}

0 commit comments

Comments
 (0)