10 lines
193 B
TypeScript
10 lines
193 B
TypeScript
//// [anyIsAssignableToVoid.ts]
|
|
interface P {
|
|
p: void;
|
|
}
|
|
|
|
interface Q extends P { // check assignability here. any is assignable to void.
|
|
p: any;
|
|
}
|
|
|
|
//// [anyIsAssignableToVoid.js]
|