tests/cases/conformance/salsa/a.js(10,5): error TS7008: Member 'twices' implicitly has an 'any[]' type.
tests/cases/conformance/salsa/a.js(14,5): error TS2322: Type '"hi"' is not assignable to type 'number'.
tests/cases/conformance/salsa/a.js(21,5): error TS2322: Type 'false' is not assignable to type 'number'.
tests/cases/conformance/salsa/a.js(24,5): error TS2322: Type 'null' is not assignable to type 'string | undefined'.
tests/cases/conformance/salsa/a.js(25,5): error TS2322: Type 'false' is not assignable to type 'string | undefined'.
tests/cases/conformance/salsa/a.js(26,5): error TS2531: Object is possibly 'null'.


==== tests/cases/conformance/salsa/a.js (6 errors) ====
    function Installer () {
        // arg: number
        this.arg = 0
        // unknown: string | boolean | null
        this.unknown = null
        // twice: string | undefined
        this.twice = undefined
        this.twice = 'hi'
        // twices: any[] | null
        this.twices = []
        ~~~~~~~~~~~~~~~~
!!! error TS7008: Member 'twices' implicitly has an 'any[]' type.
        this.twices = null
    }
    Installer.prototype.first = function () {
        this.arg = 'hi' // error
        ~~~~~~~~
!!! error TS2322: Type '"hi"' is not assignable to type 'number'.
        this.unknown = 'hi' // ok
        this.newProperty = 1 // ok: number | boolean
        this.twice = undefined // ok
        this.twice = 'hi' // ok
    }
    Installer.prototype.second = function () {
        this.arg = false // error
        ~~~~~~~~
!!! error TS2322: Type 'false' is not assignable to type 'number'.
        this.unknown = false // ok
        this.newProperty = false // ok
        this.twice = null // error
        ~~~~~~~~~~
!!! error TS2322: Type 'null' is not assignable to type 'string | undefined'.
        this.twice = false // error
        ~~~~~~~~~~
!!! error TS2322: Type 'false' is not assignable to type 'string | undefined'.
        this.twices.push(1) // error: Object is possibly null
        ~~~~~~~~~~~
!!! error TS2531: Object is possibly 'null'.
        if (this.twices != null) {
            this.twices.push('hi')
        }
    }
    