-
I'm not sure if this is a bug, or if it's the intended behaviour of the language construct.
I wrote a rule as follows:
```k
rule inRange(F, T) =>
#let SigBits = getFloatSignificandBits(T) …
-
#### Description of the problem
Consider the following code:
```
Class Finite (T : Type) := { elems : list T }.
Lemma finite_nat : Finite nat.
Proof. Admitted.
Class Countable (T : Typ…
-
**Bug Report**
Accessing an instance of an enum _though another instance_ leads to the wrong type being inferred for the instance.
**To Reproduce**
See: https://mypy-play.net/?mypy=master…
-
I tried this code:
```rust
fn main() {
let mut tmp: usize = 3;
let immut_addr = &tmp as *const _;
let addr = immut_addr.cast_mut();
}
```
I expected to see this happen: the…
-
Bubbling up this discussion from comments in #3835 , how do we expect type inference to work for constructors defined in static extensions. Ignoring the question of whether we re-use the existing `ex…
-
## Description
Translating a Go program with `go2hx` results in type casting and identifier resolution issues, as `nil` pointers in Go are not correctly cast in Haxe, causing unknown identifier err…
-
This is a reminder list for relatively easy changes we may want to do in a major version.
- Local partial types
- PEP 688 change bytearray memoryview promotion by default
- Remove logic for legac…
-
```scala
> console
[info] Starting scala interpreter...
Welcome to Scala 2.12.0-M4 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_77).
Type in expressions for evaluation. Or try :help.
scala> im…
-
## reproduction steps
```scala
trait T[-X, +Y] {
def apply(x: X): Y
def g[Z](t: T[Y, Z]): T[X, Z] = ???
def g[Z](m: Y => Z): T[X, Z] = ???
def f[W](t: T[W, X]): T[W, Y] = t.g(this)
}
…
-
It would be useful if `asInstanceOf` inferred from the expected type.
The workaround is:
```scala
def cast[A](x: Any): A = x.asInstanceOf[A] // NB can infer Nothing and throw ClassCastException…