ObjectLiteralType - Assignment Operator Fails, property type missmatch. Similarly cast fails #24984
Labels
Working as Intended
The behavior described is the intended behavior; this is not a bug
The inferred types for object literals were their properties for "string literal" is string and not object literal string value, is in consistent with explicit typing. Object Literals properties inferred type are of weaker constraint than the explicit type declaration, they should be identical. This also occurs with literal numbers.
The text was updated successfully, but these errors were encountered: