[Improvement]: Remove adding type descriptor in the extract to constant code action #42041
Labels
Area/CodeAction
Language Server Code Actions
Team/LanguageServer
Language Server Implementation related issues. #Compiler
Type/Improvement
Description
$subject
According to the spec when declaring constant it is optional to add the type descriptor. The current compiler has the capability to resolve the constant type without the type descriptor. Also when don't have the type-descriptor the compiler don't have to type check the expression against the constant expected type.
Hence we can stop adding the
type descriptor
in the extract to constant code action.https://ballerina.io/spec/lang/master/#section_8.8
Describe your problem(s)
No response
Describe your solution(s)
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: