We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45c7ce6 commit db65ba8Copy full SHA for db65ba8
source/compiler/typer.hexa
@@ -1619,6 +1619,14 @@ class Typer {
1619
}
1620
1621
1622
+ if
1623
+ toName == 'ConstArrayPointer',
1624
+ fromName == 'ArrayPointer',
1625
+ generic[0] == genericTo[0]
1626
+ {
1627
+ return to // Can cast to const
1628
+ }
1629
+
1630
// TODO better comparison, not by name
1631
if type.name == typeTo.name {
1632
switch generic[0] {
0 commit comments