Closed WojciechMazur closed 2 years ago
A bit simpler minimization:
trait GetInt {
def value: Int // if we add inline here, the program compiles
}
class Newtype {
def f: Int = ???
val g = new GetInt {
inline def value: Int = f // has to be inline to crash
}
}
Can we get the commit that failed? There were two PRs that could have touched this.
In fact I wonder how this compiled at all before https://github.com/lampepfl/dotty/commit/323dbceb39c6ad06c30edf8ce506e860e68c71a7. It seems that every call of the inline method would have caused an error then.
Ah, wait: It could be that only the implemented abstract method was a visible call target. But the the inline
would in fact never be called.
Community build regression for https://github.com/disneystreaming/smithy4s (maintainer @Baccata) Based on Open Community Build #2474 Part of https://github.com/lampepfl/dotty/issues/15647 regressions tracker
Compiler version
Works with 3.1.3 Fails with 3.2.0-RC1 Fails with 3.2.1-RC1-bin-20220711-6efd92d-NIGHTLY
Minimized code
Output (click arrow to expand)