| library /*isNonNullableByDefault*/; |
| // |
| // Problems in library: |
| // |
| // pkg/front_end/testcases/rasta/malformed_function.dart:6:4: Error: Refutable patterns can't be used in an irrefutable context. |
| // Try using an if-case, a 'switch' statement, or a 'switch' expression instead. |
| // (null) = null; |
| // ^ |
| // |
| import self as self; |
| import "dart:_internal" as _in; |
| |
| static method main() → dynamic { |
| block { |
| final has-declared-initializer dynamic #0#0 = null; |
| if(!invalid-expression "pkg/front_end/testcases/rasta/malformed_function.dart:6:4: Error: Refutable patterns can't be used in an irrefutable context. |
| Try using an if-case, a 'switch' statement, or a 'switch' expression instead. |
| (null) = null; |
| ^") |
| throw new _in::ReachabilityError::•(); |
| } =>#0#0; |
| } |