[Bug]: Invalid diagnostic when initializing readonly record with object as a field #42749
Labels
Area/CodeAnalysis
Data flow , Code and Closure analysis related issues #Compiler
Team/CompilerFE
All issues related to Language implementation and Compiler, this exclude run times.
Type/Question
Description
$Subject. Consider the below code. Code works fine when we remoe readonly from the type def.
Consider the following code -
Getting following diagnostics from the compiler -
cannot initialize abstract object 'null'
too many arguments in call to 'new()'
Steps to Reproduce
No response
Affected Version(s)
No response
OS, DB, other environment details and versions
No response
Related area
-> Compilation
Related issue(s) (optional)
No response
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response
The text was updated successfully, but these errors were encountered: