Why doesn't TypeScript throw an error when the arguments are passed in the wrong order with these simple wrapper Types?
class FirstName {
constructor(public value: string) {}
}
class LastName {
constructor(public value: string) {}
}
function getFullName(fname: FirstName, sname: LastName){
return `${fname.value} ${sname.value}`;
}
const fName = new FirstName("Dave");
const lName = new LastName("Cook");
var greeting = getFullName(lName, fName); // Why is there no compiler error?!