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