Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Explict any casting results in emitting 'undefined' #52

@dariajung

Description

@dariajung

Something like:

var x = <any>Some_Class; will result in an emit that looks like var x = undefined;

This is likely due to the fact that there is no specific type information associated with an any type.

This issue is related to #53.

Possible ways to approach this:

  • Throw an error to the user telling them to type their program more specifically.
  • Show the user a warning about using explicit any casting, and emit the object being cast as is, or unsafely rename it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions