Skip to content
This repository was archived by the owner on Nov 23, 2017. It is now read-only.
This repository was archived by the owner on Nov 23, 2017. It is now read-only.

Missing comments at end of file #183

@puffnfresh

Description

@puffnfresh
// Strong
console.log 40 + 2

// Won't compile:
// console.log "40" + 2

// Explicit
let f x: Number = x

console.log (f 100)

// Won't compile:
// console.log (f "100")

type Person = {firstName: String, lastName: String}
let getName (x: Person) = x.firstName ++ " " ++ x.lastName

console.log (getName {firstName: "Brian", lastName: "McKenna"})

// Won't compile:
// console.log (getName {})

Notice that the last comment goes missing:

// Won't compile:
// Strong
console.log(40 + 2);
// Won't compile:
// console.log "40" + 2
// Explicit
var f = function (x) {
    return x;
};
console.log(f(100));
var getName = function (x) {
    // Won't compile:
    // console.log (f "100")
    return x.firstName + ' ' + x.lastName;
};
console.log(getName({
    'firstName': 'Brian',
    'lastName': 'McKenna'
}));//@ sourceMappingURL=types.js.map

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions