diff options
Diffstat (limited to 'test/files/scalap/classWithSelfAnnotation')
-rw-r--r-- | test/files/scalap/classWithSelfAnnotation/A.scala | 4 | ||||
-rw-r--r-- | test/files/scalap/classWithSelfAnnotation/result.test | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/test/files/scalap/classWithSelfAnnotation/A.scala b/test/files/scalap/classWithSelfAnnotation/A.scala new file mode 100644 index 0000000000..f665630690 --- /dev/null +++ b/test/files/scalap/classWithSelfAnnotation/A.scala @@ -0,0 +1,4 @@ +class ClassWithSelfAnnotation { + this: CharSequence => + def foo = 239 +}
\ No newline at end of file diff --git a/test/files/scalap/classWithSelfAnnotation/result.test b/test/files/scalap/classWithSelfAnnotation/result.test new file mode 100644 index 0000000000..9e20790fa2 --- /dev/null +++ b/test/files/scalap/classWithSelfAnnotation/result.test @@ -0,0 +1,5 @@ +class ClassWithSelfAnnotation extends java.lang.Object with scala.ScalaObject { + this : ClassWithSelfAnnotation with java.lang.CharSequence => + def this() = { /* compiled code */ } + def foo : scala.Int = { /* compiled code */ } +}
\ No newline at end of file |