Index: test/browser/runtime_tests.js |
diff --git a/test/browser/runtime_tests.js b/test/browser/runtime_tests.js |
index 9b84c9bc6b5800df8536100a5c66fd9c3e6a9b1e..59d48d5603c7eed09f3083f71b0132cf54362fea 100644 |
--- a/test/browser/runtime_tests.js |
+++ b/test/browser/runtime_tests.js |
@@ -72,6 +72,13 @@ suite('generic', () => { |
assert.equal(someValue[dart.originalDeclaration], SomeType); |
assert.deepEqual(someValue[dart.typeArguments], ['hi', 123]); |
}); |
+ |
+ test('proper type constructor is called', () => { |
+ // This tests https://github.com/dart-lang/dev_compiler/issues/178 |
+ let l = dart.setType([1, 2, 3], core.List$(core.int)); |
+ let s = l[core.$join](); |
+ assert.equal(s, '123'); |
+ }); |
}); |