Guest User

Untitled

a guest
Oct 22nd, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. object MainApp {
  2. def main(args: Array[String]): Unit = {
  3. println(new B())
  4. }
  5. }
  6.  
  7. class B extends A
  8.  
  9. @js.native
  10. @JSImport("example", "A")
  11. class A extends js.Object
  12.  
  13. TypeError: Class constructor A cannot be invoked without 'new'
  14.  
  15. /** @constructor */
  16. var $c_LB = (function $c_LB() {
  17. $i_$0040test$002dtest$002ftest.B.call(this)
  18. });
Add Comment
Please, Sign In to add comment