Przeglądaj źródła

Fix incorrect type on value field (#12055)

Aidan Lee 5 miesięcy temu
rodzic
commit
22839a3742
1 zmienionych plików z 1 dodań i 1 usunięć
  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>;