Closed as not planned
Closed as not planned
Description
Description
The line true ? contract0.struct1(true) : this.struct_instance13();
causes an error with the following error message: True expression's type struct contract0.struct1 memory does not match false expression's type bool
. I think both sides are of type contract0.struct1
.
contract contract0 {
struct struct1 {
bool struct_member2;
}
}
contract contract12 {
contract0.struct1 public struct_instance13;
function func14() public view {
true ? contract0.struct1(true) : this.struct_instance13();
}
}
Environment
- Compiler version: 0.8.28-develop.2024.10.7