Index: test/codegen/expect/corelib/symbol_reserved_word_test_03_multi.js |
diff --git a/test/codegen/expect/corelib/symbol_reserved_word_test_03_multi.js b/test/codegen/expect/corelib/symbol_reserved_word_test_03_multi.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..83d617a912bf5ce53f855a7b8d8c593d872497fc |
--- /dev/null |
+++ b/test/codegen/expect/corelib/symbol_reserved_word_test_03_multi.js |
@@ -0,0 +1,26 @@ |
+dart_library.library('corelib/symbol_reserved_word_test_03_multi', null, /* Imports */[ |
+ 'dart_sdk', |
+ 'expect' |
+], function load__symbol_reserved_word_test_03_multi(exports, dart_sdk, expect) { |
+ 'use strict'; |
+ const core = dart_sdk.core; |
+ const dart = dart_sdk.dart; |
+ const dartx = dart_sdk.dartx; |
+ const expect$ = expect.expect; |
+ const symbol_reserved_word_test_03_multi = Object.create(null); |
+ let VoidToSymbol = () => (VoidToSymbol = dart.constFn(dart.definiteFunctionType(core.Symbol, [])))(); |
+ let dynamicTobool = () => (dynamicTobool = dart.constFn(dart.definiteFunctionType(core.bool, [dart.dynamic])))(); |
+ let StringTovoid = () => (StringTovoid = dart.constFn(dart.definiteFunctionType(dart.void, [core.String])))(); |
+ let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))(); |
+ symbol_reserved_word_test_03_multi.checkBadSymbol = function(s) { |
+ expect$.Expect.throws(dart.fn(() => core.Symbol.new(s), VoidToSymbol()), dart.fn(e => core.ArgumentError.is(e), dynamicTobool())); |
+ }; |
+ dart.fn(symbol_reserved_word_test_03_multi.checkBadSymbol, StringTovoid()); |
+ symbol_reserved_word_test_03_multi.main = function() { |
+ let x = null; |
+ x = core.Symbol.new('void'); |
+ }; |
+ dart.fn(symbol_reserved_word_test_03_multi.main, VoidTodynamic()); |
+ // Exports: |
+ exports.symbol_reserved_word_test_03_multi = symbol_reserved_word_test_03_multi; |
+}); |