summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Hodge (sonata) <tpg@mutabah.net>2015-01-17 23:24:13 +0800
committerJohn Hodge (sonata) <tpg@mutabah.net>2015-01-17 23:24:13 +0800
commit0c9d8ed4cbe8d74a511176cd6577c9c3d0eb3ef6 (patch)
treeed3bbabd22721c8d5ea5134030b6baf7ca56dcc4
parent54af654480b0a686a0e0b6cd4fdc41feaafa7a77 (diff)
downloadmrust-0c9d8ed4cbe8d74a511176cd6577c9c3d0eb3ef6.tar.gz
Notes on typecheck pass
-rw-r--r--src/main.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index ce1bd3e7..c84a6b3d 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -88,6 +88,12 @@ int main(int argc, char *argv[])
//s << crate;
// Typecheck / type propagate module (type annotations of all values)
+ // - Check all generic conditions (ensure referenced trait is valid)
+ // > Also mark parameter with applicable traits
+ // - Check all generic parameters match required conditions
+ // - Typecheck statics and consts
+ // - Typecheck + propagate functions
+ // > Forward pass first
if( strcmp(emit_type, "ast") == 0 )
{