{"size": 259, "ext": "js", "max_stars_repo_path": "crates/swc/tests/tsc-references/classWithoutExplicitConstructor_es2015.1.normal.js", "max_stars_repo_name": "mengxy/swc", "max_stars_repo_stars_event_min_datetime": "2017-04-01T04:06:55.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-31T23:11:05.000Z", "max_issues_repo_path": "tests/tsc-references/classes/constructorDeclarations/automaticConstructors/classWithoutExplicitConstructor/input.ts/es2015.1.normal/output.js", "max_issues_repo_name": "sventschui/swc", "max_issues_repo_issues_event_min_datetime": "2018-01-14T05:54:44.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-31T15:48:40.000Z", "max_forks_repo_path": "tests/tsc-references/classes/constructorDeclarations/automaticConstructors/classWithoutExplicitConstructor/input.ts/es2015.1.normal/output.js", "max_forks_repo_name": "sventschui/swc", "max_forks_repo_forks_event_min_datetime": "2018-01-14T05:15:43.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-30T11:29:42.000Z"}
{"max_stars_count": 21008, "max_issues_count": 2309, "max_forks_count": 768, "avg_line_length": 15.2352941176, "max_line_length": 30, "alphanum_fraction": 0.4517374517}
class C {
    constructor(){
        this.x = 1;
        this.y = 'hello';
    }
}
var c = new C();
var c2 = new C(null); // error
class D {
    constructor(){
        this.x = 2;
        this.y = null;
    }
}
var d = new D();
var d2 = new D(null); // error
