| Index: pkg/analysis_server/test/services/completion/optype_test.dart
|
| diff --git a/pkg/analysis_server/test/services/completion/optype_test.dart b/pkg/analysis_server/test/services/completion/optype_test.dart
|
| index 5f2e1e16d9ff40bf08e5105ad7edd6cab6263c99..70c4f58290d5c2af40929d4d1d3dfd9da2591c98 100644
|
| --- a/pkg/analysis_server/test/services/completion/optype_test.dart
|
| +++ b/pkg/analysis_server/test/services/completion/optype_test.dart
|
| @@ -251,6 +251,18 @@ class OpTypeTest {
|
| assertOpType(returnValue: true, typeNames: true, voidReturn: true);
|
| }
|
|
|
| + test_CatchClause_onType() {
|
| + // TypeName CatchClause TryStatement
|
| + addTestSource('class A {a() {try{var x;} on ^ {}}}');
|
| + assertOpType(typeNames: true);
|
| + }
|
| +
|
| + test_CatchClause_onType_noBrackets() {
|
| + // TypeName CatchClause TryStatement
|
| + addTestSource('class A {a() {try{var x;} on ^}}');
|
| + assertOpType(typeNames: true);
|
| + }
|
| +
|
| test_CatchClause_typed() {
|
| // Block CatchClause TryStatement
|
| addTestSource('class A {a() {try{var x;} on E catch (e) {^}}}');
|
|
|