library /*isNonNullableByDefault*/; | |
// | |
// Problems in library: | |
// | |
// pkg/front_end/testcases/nnbd/issue39659.dart:8:9: Warning: Throwing a value of 'String?' that is neither dynamic nor non-nullable. | |
// throw bar(); | |
// ^ | |
// | |
import self as self; | |
import "dart:core" as core; | |
static method foo() → dynamic { | |
throw self::bar(); | |
} | |
static method bar() → core::String? | |
return "asdf"; | |
static method main() → dynamic {} |