summaryrefslogblamecommitdiff
path: root/test/files/neg/macro-override-macro-overrides-abstract-method-b.check
blob: cde3dbdbe88f078352bce8408f2405386d9a1dbd (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                                               
Test_2.scala:3: error: anonymous class $anon inherits conflicting members:
  macro method t in trait C of type ()Unit  and
  method t in trait A of type ()Unit
(Note: this can be resolved by declaring an override in anonymous class $anon.)
  val c2 = new C with A {}
               ^
Test_2.scala:5: error: overriding macro method t in trait C of type ()Unit;
 method t cannot override a macro
  val c4 = new C with A { override def t(): Unit = () }
                                       ^
two errors found