Ary Borenszweig

Results 76 issues of Ary Borenszweig

# Description ## Problem Resolves #5501 ## Summary Implements #5501 ## Additional Context None. ## Documentation Check one: - [x] No documentation needed. - [ ] Documentation included in this...

Given: ```cr class Foo end class Bar < Foo end ``` And an array of `Bar`: ```cr array = Array(Bar).new ``` We can ask the question: is `array` an `Array(Foo)`?...

topic:compiler
status:draft
topic:compiler:generics

### Aim This code: ```noir struct Foo {} impl Foo { fn static_method() -> [u8; N] { [0; N] } } fn main() { let _ = Foo::::static_method::(); } ```...

bug
compiler frontend

### Aim This code: ```noir trait From2 { fn from2(input: T) -> Self; } struct U60Repr {} impl From2 for U60Repr { fn from2(_: [i32; 3]) -> Self { U60Repr...

bug
compiler frontend

# Description ## Problem Resolves #8995 ## Summary The "remove unreachable instructions" now does one more thing: it replaces binary operations that are guaranteed to fail with a constrain failure,...

### Aim This code compiles fine: ```noir trait Bar { type N; } impl Bar for Field { type N = i32; } fn foo() where B: Bar, {} ```...

bug
compiler frontend

### Aim This code: ```noir pub trait Parent { fn foo(); } pub trait Child: Parent {} pub fn foo() { T::foo(); } fn main() {} ``` gives this error:...

bug

### Aim Given this code: ```noir pub type X = X; fn main() { let x: X = 1; } ``` ### Expected Behavior It should not compile, saying that...

bug
compiler frontend

### Aim As a follow-up to #8594, this code: ```noir trait Foo { type E: Bar; fn bar(self) -> Self::E; } trait Bar { fn bar_method(self); } trait Baz where...

bug
compiler frontend

### Aim In this code: ```noir pub trait Trait { fn one(self) -> T; fn foo(self) { let t = self.one(); } } fn main() {} ``` We see this...

bug