Files
sdk/pkg/front_end/testcases/general/nested_variable_set.dart.weak.modular.expect
T
Johnni Winther 078d407f40 [cfe] Add modular_suite
This adds a new expectation test suite which mimics the modular
compilation strategy used by dartdevc; the test code is fully compiled
but the linked dependencies are only compiled as outlines.

Change-Id: I4b8a68087997c025eb39aec414ee1706ddf7f847
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/222762
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
2021-12-10 14:02:30 +00:00

20 lines
512 B
Plaintext

library;
import self as self;
import "dart:core" as core;
static method main() → dynamic {
core::int* intLocal1;
core::int* intLocal2;
core::num* numLocal;
core::double* doubleLocal;
intLocal1 = (intLocal2 = numLocal as{TypeError} core::int*) as{TypeError} core::int*;
intLocal1 = numLocal = intLocal2;
numLocal = 0.5;
try {
intLocal1 = (doubleLocal = numLocal as{TypeError} core::double*) as{TypeError} core::int*;
throw "Should fail";
}
on dynamic catch(final dynamic _) {
}
}