You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Scala compiler version 3.3.1 -- Copyright 2002-2023, LAMP/EPFL
Minimized code
Requires two source files:
$ cat Foo.scala
class Foo {
@native def test(): Unit
}
class Bar extends Foo
$ cat Baz.scala
class Baz extends Foo
Output
$ scalac Foo.scala
$ scalac Baz.scala
--Error:Baz.scala:1:6-----------------------------------------------------------------------------------------------------------------------------------------------------1|classBazextendsFoo|^|classBaz needs to be abstract, since deftest():Unit in classFoo is not defined
1 error found
Expectation
No errors, when subclass and superclass are compiled in separate sessions.
Note: if subclass is located in the same file (or in the same compilation session), like with Bar in Foo.scala, then it compiles without errors
The text was updated successfully, but these errors were encountered:
Compiler version
Scala compiler version 3.3.1 -- Copyright 2002-2023, LAMP/EPFL
Minimized code
Requires two source files:
Output
Expectation
No errors, when subclass and superclass are compiled in separate sessions.
The text was updated successfully, but these errors were encountered: