X Tutup
Skip to content

[hl] values assigned inside of nested catch are discarded. #9174

@RealyUniqueName

Description

@RealyUniqueName
class Main {
	static public function main() {
		var value = false;
		try {
			try {
				throw '';
			} catch(e:String) {
				value = true;
				trace('inner catch: value == $value');
				throw e;
			}
		} catch(e:String) {
			trace('outer catch: value == $value');
		}
	}
}

Actual output:

Main.hx:9: inner catch: value == true
Main.hx:13: outer catch: value == false

Expected output:

Main.hx:9: inner catch: value == true
Main.hx:13: outer catch: value == true

Metadata

Metadata

Labels

bugplatform-hlEverything related to HashLink

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    X Tutup