Index: test/codegen/expect/corelib/symbol_reserved_word_test_02_multi.js |
diff --git a/test/codegen/expect/corelib/symbol_reserved_word_test_02_multi.js b/test/codegen/expect/corelib/symbol_reserved_word_test_02_multi.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d6433cfd13ddcb3cef6806c0387c692910ddf627 |
--- /dev/null |
+++ b/test/codegen/expect/corelib/symbol_reserved_word_test_02_multi.js |
@@ -0,0 +1,27 @@ |
+dart_library.library('corelib/symbol_reserved_word_test_02_multi', null, /* Imports */[ |
+ 'dart_sdk', |
+ 'expect' |
+], function load__symbol_reserved_word_test_02_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_02_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_02_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_02_multi.checkBadSymbol, StringTovoid()); |
+ let const$; |
+ symbol_reserved_word_test_02_multi.main = function() { |
+ let x = null; |
+ x = const$ || (const$ = dart.const(core.Symbol.new('void'))); |
+ }; |
+ dart.fn(symbol_reserved_word_test_02_multi.main, VoidTodynamic()); |
+ // Exports: |
+ exports.symbol_reserved_word_test_02_multi = symbol_reserved_word_test_02_multi; |
+}); |