Skip to content

Commit c084600

Browse files
test: add in regression test for #14830 (#17514)
[skip community_build] closes #14830
2 parents 22b2259 + b00b5c6 commit c084600

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)