VM: compile error in checked mode when a constructor's type parameter is not within declared type bound #6030
Labels
area-vm
Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
closed-as-intended
Closed as the reported issue is expected behavior
This issue was originally filed by [email protected]
looks like a duplicate of 905 or 1380
Spec (11 and 11.11.1) says it's only a static warning and a type error in checked mode, but co19 test Language/10_Expressions/11_Instance_Creation_A05_t02 fails with a compile error
class G<T extends num, S extends String> {
const G();
}
main() {
checkTypeError(() {
var o = const G<double, double>();
});
}
The text was updated successfully, but these errors were encountered: