You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attempted to compile the following program, where T and let N: u32 are unused in the impl for Foo:
traitFoo {
fnfoo(self) ->Self;
}
impl<T, letN: u32> Foofor () {
fnfoo(self) ->Self {
()
}
}
fnmain() {
// only errors with this lineprintln(().foo());
}
Expected Behavior
Expected the program to fail when the impl that cannot be instantiated was defined (i.e. without println(().foo());)
Bug
The program only fails when the impl is used:
error: Type annotation needed
┌─ src/main.nr:273:13
│
273 │ println(().foo());
│ ------ Could not determine type of generic argument
│
= Call stack:
1. src/main.nr:273:13
To Reproduce
Workaround
None
Workaround Description
No response
Additional Context
No response
Project Impact
None
Blocker Context
No response
Nargo Version
nargo version = 0.39.0 noirc version = 0.39.0+68c32b4ffd9b069fe4b119327dbf4018c17ab9d4 (git version hash: 68c32b4, is dirty: false)
NoirJS Version
No response
Proving Backend Tooling & Version
No response
Would you like to submit a PR for this Issue?
None
Support Needs
No response
The text was updated successfully, but these errors were encountered:
Aim
Attempted to compile the following program, where
T
andlet N: u32
are unused in theimpl
forFoo
:Expected Behavior
Expected the program to fail when the
impl
that cannot be instantiated was defined (i.e. withoutprintln(().foo());
)Bug
The program only fails when the
impl
is used:To Reproduce
Workaround
None
Workaround Description
No response
Additional Context
No response
Project Impact
None
Blocker Context
No response
Nargo Version
nargo version = 0.39.0 noirc version = 0.39.0+68c32b4ffd9b069fe4b119327dbf4018c17ab9d4 (git version hash: 68c32b4, is dirty: false)
NoirJS Version
No response
Proving Backend Tooling & Version
No response
Would you like to submit a PR for this Issue?
None
Support Needs
No response
The text was updated successfully, but these errors were encountered: