mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 11:11:30 +03:00
fix(es/codegen): Emit type parameters of class super expression (#5338)
This commit is contained in:
parent
f8f62eada4
commit
42d8ad26ce
@ -1231,6 +1231,7 @@ where
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
emit!(node.super_class);
|
emit!(node.super_class);
|
||||||
|
emit!(node.super_type_params);
|
||||||
}
|
}
|
||||||
|
|
||||||
formatting_space!();
|
formatting_space!();
|
||||||
|
@ -0,0 +1,3 @@
|
|||||||
|
class Page extends React.Component<Props, any> {
|
||||||
|
render() {}
|
||||||
|
}
|
@ -0,0 +1,3 @@
|
|||||||
|
class Page extends React.Component<Props, any> {
|
||||||
|
render() {}
|
||||||
|
}
|
@ -1,5 +1,6 @@
|
|||||||
import { Nullable__1 } from "nullable";
|
import { Nullable__1 } from "nullable";
|
||||||
import { Component__1 } from "react";
|
import { Component__1 } from "react";
|
||||||
class Foo__1 extends Component__1 {
|
class Foo__1 extends Component__1<Nullable__1, {
|
||||||
|
}> {
|
||||||
}
|
}
|
||||||
new Foo__1();
|
new Foo__1();
|
||||||
|
Loading…
Reference in New Issue
Block a user