Ver código fonte

Fix incorrect type on value field (#12055)

Aidan Lee 6 meses atrás
pai
commit
22839a3742
1 arquivos alterados com 1 adições e 1 exclusões
  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>;