Comments (3)
Crashes
I wasn't able to reproduce the crash.
Assuming this to just be a reporting issue.
from scala3.
Ah, right. There's no crash, but the code fails by throwing an exception at runtime when run as a script.
// repro-script.sc
sealed trait T_A[B]
sealed trait T_B[C]
case class CC_B[C]() extends T_A[T_B[C]]
case class CC_C[B, C](c: T_A[B], d: T_B[C]) extends T_B[C]
case class CC_E[C]() extends T_B[C]
val v_a: T_B[Int] = CC_C(null, CC_E())
val v_b: Int = v_a match {
case CC_C(_, CC_C(_, _)) => 0
case CC_E() => 5
}
scala-cli run repro-script.sc
Compiling project (Scala 3.4.2, JVM (17))
Compiled project (Scala 3.4.2, JVM (17))
Exception in thread "main" scala.MatchError: CC_C(null,CC_E()) (of class repro$minusscript$_$CC_C)
at repro$minusscript$_.<init>(repro-script.sc:10)
at repro$minusscript_sc$.script$lzyINIT1(repro-script.sc:25)
at repro$minusscript_sc$.script(repro-script.sc:25)
at repro$minusscript_sc$.main(repro-script.sc:29)
at repro$minusscript_sc.main(repro-script.sc)
from scala3.
Very similar issues which were reported together with this, potentially duplicates:
from scala3.
Related Issues (20)
- Scaladoc: better `-external-mappings` (working on packages instead of paths)
- NullPointerException with type lambda + match type HOT 2
- Compiler should enforce named arguments for Java annotations
- Loading coursier-interfaces crashes the compiler HOT 2
- TypeError: object caps does not have a member type Cap HOT 2
- odd evaluation order when using extension method named `|` as infix method HOT 1
- `java.sql.Driver` missing from classpath in macro in presentation compiler HOT 1
- Scala Pattern Matching on Java Records (JEP-440) HOT 1
- Seq from unsafe wrapped array fails to deconstruct in head and tail with pattern matching HOT 3
- No type-mismatch error in fewer-braces code when using context function
- Match type reduction including function types HOT 1
- Incorrect warning about ambiguous implicit
- Nightly Dotty workflow of 2024-06-15 failed HOT 1
- Nested overloaded inline methods crash the compiler when imported from exported object HOT 2
- Nightly Dotty workflow of 2024-06-16 failed HOT 1
- Nightly Dotty workflow of 2024-06-17 failed HOT 1
- private inline method leads to type path loss
- @native method treated as abstract in subclass
- Nightly Dotty workflow of 2024-06-18 failed HOT 1
- Issue with macros and in-memory (virtual) source files HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scala3.