Open rebcabin opened 1 year ago
MVE:
from lpython import (i8, i32, i64, f32, f64, TypeVar, Const, dataclass) HDC_DIM: Const[i32] = 8192 @dataclass class LPBHV: a : i8[HDC_DIM] ############ ATTENTION ###########
/Users/brian/CLionProjects/lpython/src/bin/python /Users/brian/CLionProjects/lpython/lasr/LP-pycharm/issue2083.py semantic error: Variable 'HDC_DIM' not declared --> /Users/brian/CLionProjects/lpython/lasr/LP-pycharm/issue2083.py:11:12 | 11 | a : i8[HDC_DIM] | ^^^^^^^
removing Const doesn't fix it.
Const
MVE: