From 0b8074154e2671691050bdb3bcb33245625a056c Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 4 Apr 2025 17:06:09 -0400 Subject: First working compile of refactor to add explicit typing to declarations and support untyped empty collections and `none`s --- examples/pthreads/pthreads.tm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/pthreads') diff --git a/examples/pthreads/pthreads.tm b/examples/pthreads/pthreads.tm index 975b981d..fb79e822 100644 --- a/examples/pthreads/pthreads.tm +++ b/examples/pthreads/pthreads.tm @@ -65,7 +65,7 @@ struct pthread_t(; extern, opaque): func detatch(p:pthread_t): inline C { pthread_detach(_$p); } struct IntQueue(_queue:@[Int], _mutex:@pthread_mutex_t, _cond:@pthread_cond_t): - func new(initial=[:Int] -> IntQueue): + func new(initial:[Int]=[] -> IntQueue): return IntQueue(@initial, pthread_mutex_t.new(), pthread_cond_t.new()) func give(q:IntQueue, n:Int): -- cgit v1.2.3