We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87b7137 commit c4778deCopy full SHA for c4778de
tests/run/i19270.scala
@@ -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