Skip to content

Commit 75cd85e

Browse files
committed
Add test case for #19270.
Closes #19270.
1 parent a6d0f65 commit 75cd85e

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

tests/run/i19270.scala

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// scalajs: --skip
2+
3+
trait T {
4+
def foo(x: Int): Int = x + 1
5+
}
6+
7+
class C extends T
8+
9+
object Test {
10+
def main(args: Array[String]): Unit = {
11+
println("i19270")
12+
val m = classOf[C].getDeclaredMethod("foo", classOf[Int])
13+
assert(m.getDeclaringClass() == classOf[C], m.getDeclaringClass())
14+
assert(!m.isBridge(), "foo should not have the ACC_BRIDGE flag")
15+
assert(!m.isSynthetic(), "foo should not have the ACC_SYNTHETIC flag")
16+
}
17+
}

0 commit comments

Comments
 (0)