zephir-lang / zephir

Zephir is a compiled high-level language aimed to ease the creation of C-extensions for PHP
https://zephir-lang.com
MIT License
3.3k stars 466 forks source link

let self::someVar = ""; #2409

Open tecworks-dev opened 1 year ago

tecworks-dev commented 1 year ago

namespace Demo;

class MyClass {

protected static someVar;

public static function setVar() {
    let self::someVar = "";
}

}

let self::someVar = ""; [ERROR] Internal extension compilation failed. Check compile-errors.log for more information. but let self::someVar = "123"; let self::someVar = null; works fine