pca006132
  • Joined on 2020-04-27
pca006132 closed issue M-Labs/nac3#225 2022-03-23 16:30:06 +08:00
LLVM ERROR: Type mismatch in constant table!
pca006132 commented on issue M-Labs/nac3#229 2022-03-23 00:44:30 +08:00
Typevars cause Option::unwrap() on a None value', nac3core/src/codegen/expr.rs:500:51

btw the code is wrong: you should use

U = TypeVar("U", C[A], C[B])
U2 = TypeVar("U", C[A], C[B])

@nac3
class Types(Generic[U2], EnvExperiment):
    core: KernelInvariant[Core]
   
pca006132 reopened issue M-Labs/nac3#229 2022-03-23 00:42:45 +08:00
Typevars cause Option::unwrap() on a None value', nac3core/src/codegen/expr.rs:500:51
pca006132 commented on issue M-Labs/nac3#234 2022-03-23 00:37:40 +08:00
intermittent stack overflow in test

d9be8d3978

pca006132 closed issue M-Labs/nac3#234 2022-03-23 00:37:40 +08:00
intermittent stack overflow in test
pca006132 closed issue M-Labs/nac3#228 2022-03-23 00:37:04 +08:00
wrong "Incompatible types" error with generic classes
pca006132 commented on issue M-Labs/nac3#228 2022-03-23 00:33:58 +08:00
wrong "Incompatible types" error with generic classes

41d62f7325

This one is a bit tricky... There are multiple reasons, including the fix Anto mentioned above, and a bug in…

pca006132 closed issue M-Labs/nac3#229 2022-03-23 00:25:33 +08:00
Typevars cause Option::unwrap() on a None value', nac3core/src/codegen/expr.rs:500:51
pca006132 pushed to master at M-Labs/nac3 2022-03-23 00:25:17 +08:00
d9be8d3978 nac3core/typecheck/unification_table: fixed snapshot restore bug
41d62f7325 nac3core/toplevel: fixed typevar substitution bug
Compare 2 commits »
pca006132 commented on issue M-Labs/nac3#227 2022-03-21 16:15:46 +08:00
application of type vars to generic class is not currently supported

I am not sure why is there such a restriction. And what is application of typevar to generic class? Do you mean anything like C[T] where T = TypeVar(...) is not supported?

pca006132 pushed to master at M-Labs/nac3 2022-03-18 16:53:04 +08:00
234823c51a nac3standalone: added typevar test
b97c016629 nac3core: fixed test breakage
Compare 2 commits »
pca006132 closed issue M-Labs/nac3#222 2022-03-18 01:09:52 +08:00
'internal error: entered unreachable code: TVar', nac3core/src/codegen/mod.rs:322:18
pca006132 closed issue M-Labs/nac3#219 2022-03-18 01:09:47 +08:00
Option::unwrap() on a None value panic with typevars
pca006132 closed issue M-Labs/nac3#220 2022-03-18 01:09:39 +08:00
internal error with typevar
pca006132 commented on issue M-Labs/nac3#220 2022-03-18 01:09:39 +08:00
internal error with typevar

Actually this code is invalid, we should have x: A instead of x: T. If you need x: T, you should do

def __init__(self, x: T):
    self.x = x
pca006132 pushed to master at M-Labs/nac3 2022-03-18 01:07:59 +08:00
35ac5cb6f6 nac3core: fixed typevar bug
93af337ed3 Revert "update dependencies"
Compare 2 commits »
pca006132 pushed to master at M-Labs/nac3 2022-03-17 15:13:13 +08:00
fb8553311c nac3artiq: remove accidentally added print
pca006132 closed issue M-Labs/nac3#191 2022-03-17 15:09:01 +08:00
review artiq_builtin = True in ARTIQ exceptions
pca006132 commented on issue M-Labs/nac3#191 2022-03-17 15:09:00 +08:00
review artiq_builtin = True in ARTIQ exceptions

Also fixed in #218

pca006132 pushed to builtin-errors at M-Labs/nac3 2022-03-17 15:03:33 +08:00
04e7a7eb4b nac3artiq: support more exceptions