DescriptionAdd unit test on dart2js static analysis of method type parameters.
The new test is specifically for `dart2js --generic-method-syntax ..`,
executed programmatically using 'memory_compiler.dart'.
It verifies that each method type variable is treated as if it had
been an alias for `dynamic` (so the static analysis allows almost
all usages of these type variables, silently). Note that this behavior
is unlikely to be available with any other tools, and even `dart2js`
will behave differently when generic methods are implemented fully.
Hence, the new test will only be useful as-is during a transitional
period.
R=johnniwinther@google.com
Committed: https://github.com/dart-lang/sdk/commit/d55adbed81b02a4f59acffdfb4f8dad1b4bc2204
Patch Set 1 #
Total comments: 4
Patch Set 2 : Changed new test to "unittest" (running the compiler programmatically) #
Total comments: 2
Patch Set 3 : Review response #
Messages
Total messages: 15 (4 generated)
|