dart-sdk/tests/compiler/dart2js_native/call_on_native_class_test.dart

18 lines
334 B
Dart

// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:_js_helper';
@Native('*A')
class A {
}
class B extends A {
call() => 42;
}
main() {
new B()();
}