| library; |
| // |
| // 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:core" as core; |
| |
| static method main() → dynamic { |
| { |
| final synthesized has-declared-initializer Null #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{for-error-handling} new core::StateError::•("Pattern matching error"); |
| } |
| } |