-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed
Description
Motivation
Similar to Javascript, Typescript also supports type any
that allows a variable of that type to be assigned values of any other types. This also means that the type checking is disabled whenever any
is used in Typescript. Now we are trying to find how any constructs with any
could be possibly translated into LLVM IR. Below is an example of one variable and two functions that are defined with any
in Typescript.
Example
let obj: any = { content: 'heymycontent' };
obj = 23;
function isView(arg: any): boolean {
// Do something here
}
// the output of this function may be of any
function calculate(argA: string, argB: number): any {
return argA + argB;
}
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed