Closed kmr-srbh closed 2 months ago
Please mark this PR ready for review once it is ready.
@Shaikh-Ubaid @Thirumalai-Shaktivel there is a considerable degree of redundancy here, like for dictionary and lists. I have to implement slicing on Const list
and the problem will arise there too. What is the fix? Functions?
What is the status of this PR?
The CI seems to fail, please mark this PR ready for review once it is ready.
What is the status of this PR?
The CI seems to fail, please mark this PR ready for review once it is ready.
@Thirumalai-Shaktivel this PR is ready. The only blocker is the issue stated here - https://github.com/lcompilers/lpython/pull/2567#issuecomment-1987333638. Could you please look into it?
@Shaikh-Ubaid , type_get_past_const
was removed in the new additions from LFortran. What do we do here now? Use get_contained_type()
?
@Shaikh-Ubaid , type_get_past_const was removed in the new additions from LFortran. What do we do here now? Use get_contained_type()?
Simply remove the call to type_get_past_const()
. Cont_t
node no more exists. You need not use anything.
@Shaikh-Ubaid as the Const
node was removed, this works out-of-the-box now. I have reverted all the previous unnecessary changes. The tests and semantic error for creating Const
str and Const
tuple have been retained. This is ready.
A related issue is the failing slicing on Const
list and Const
str. I will open an issue for it.
Fixes #2578 The following changes were made:
dict
andlist
. Return the corresponding value.Const
is not required.Fix
Dictionary
List
Tuple
String