-
Notifications
You must be signed in to change notification settings - Fork 490
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added indirect impl support for inference. (#4420)
No confilct resolution.
- Loading branch information
Showing
6 changed files
with
71 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
trait Trait1<T> { | ||
fn func1(value: T); | ||
} | ||
|
||
trait Trait2<T> { | ||
fn func2(value: T); | ||
} | ||
|
||
mod impls { | ||
impl Impl1<T, +Drop<T>> of super::Trait1<T> { | ||
fn func1(value: T) {} | ||
} | ||
impl ImplAlias1 = Impl1<felt252>; | ||
impl Impl2<T, +Drop<T>> of super::Trait2<T> { | ||
fn func2(value: T) {} | ||
} | ||
impl ImplAlias2 = Impl2<felt252>; | ||
} | ||
|
||
use impls::ImplAlias1; | ||
impl Impl2 = impls::ImplAlias2; | ||
|
||
fn foo() { | ||
Trait1::func1(0_felt252); | ||
Trait2::func2(0_felt252); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
mod ecdsa_completeness; | ||
mod indirect_impl_alias; | ||
mod issue2114; | ||
mod issue2147; | ||
mod issue2152; | ||
|