mirror of
https://github.com/odin-lang/Odin.git
synced 2026-03-01 22:28:20 +00:00
Fix some preload bugs.
This commit is contained in:
@@ -41,8 +41,8 @@ expand :: proc(table: ^$T/Table) {
|
||||
}
|
||||
}
|
||||
|
||||
put :: proc(table: ^$T/Table, key: T.Key, value: T.Value) {
|
||||
// put :: proc(table: ^Table($K, $V), key: K, value: V) {
|
||||
// put :: proc(table: ^$T/Table, key: T.Key, value: T.Value) {
|
||||
put :: proc(table: ^Table($Key, $Value), key: Key, value: Value) {
|
||||
hash := get_hash(key); // Ad-hoc method which would fail in differentcope
|
||||
index := find_index(table, key, hash);
|
||||
if index < 0 {
|
||||
@@ -142,6 +142,7 @@ foo3 :: proc(a: type/Vector(3, $T)) {fmt.println("foo3", a{}); }
|
||||
|
||||
|
||||
|
||||
|
||||
main :: proc() {
|
||||
foo1(Vector(3, f32));
|
||||
foo1(Vector3);
|
||||
|
||||
Reference in New Issue
Block a user