Browse Source

Fix incorrect type on value field (#12055)

Aidan Lee 5 tháng trước cách đây
mục cha
commit
22839a3742
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      std/cpp/ConstPointer.hx

+ 1 - 1
std/cpp/ConstPointer.hx

@@ -28,7 +28,7 @@ extern class ConstPointer<T> {
 	// Use value or ref to get dereferenced value
 	var ptr:Star<T>;
 
-	var value(get, never):T;
+	var value(get, never):Reference<T>;
 
 	// Typecast to non-const
 	var raw(get, never):RawPointer<T>;