summaryrefslogtreecommitdiff
path: root/test/files/neg/sealed-final-neg.check
blob: e135f38f8b8be0b835c74db2345e7e64d34a6ef0 (plain) (blame)
1
2
3
4
5
6
7
8
9
sealed-final-neg.scala:17: warning: neg1/Foo::bar(I)I is annotated @inline but cannot be inlined: the method is not final and may be overridden.
    def f = Foo.mkFoo() bar 10
                        ^
sealed-final-neg.scala:37: warning: neg2/Foo::bar(I)I is annotated @inline but cannot be inlined: the method is not final and may be overridden.
    def f = Foo.mkFoo() bar 10
                        ^
error: No warnings can be incurred under -Xfatal-warnings.
two warnings found
one error found