Skip to content

Commit b00b5c6

Browse files
committed
test: add in regression test for #14830
[skip community_build] closes #14830
1 parent 22b2259 commit b00b5c6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/pos/i14830.scala

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
// https://github.com/lampepfl/dotty/issues/14830
3+
val a: Comparable[String] = "Fred"
4+
val b: { def length: Int } = "Fred"
5+
val c: Comparable[String] & { def length: Int } = "Fred"
6+
val d: Comparable[String] & { def length(): Int } = "Fred"

0 commit comments

Comments
 (0)