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






                                                                               
                                                                         


                                                       
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 be used here - only term macros can override term macros
  val c4 = new C with A { override def t(): Unit = () }
                                       ^
two errors found