diff options
author | John Hodge <tpg@mutabah.net> | 2016-06-04 11:43:45 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-06-04 11:43:45 +0800 |
commit | f9e94f5e907af0ce205a6b04deb5b0d35a4e1bc4 (patch) | |
tree | 55562cd226fa90c5c9ac24efa7eb4e4d74cf719f /src/hir/pattern.hpp | |
parent | 6fad166a1c3b18bda2c9c6c981d72628cd256a00 (diff) | |
download | mrust-f9e94f5e907af0ce205a6b04deb5b0d35a4e1bc4.tar.gz |
HIR Typeck - Coming along, close to needing coercions
Diffstat (limited to 'src/hir/pattern.hpp')
-rw-r--r-- | src/hir/pattern.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/hir/pattern.hpp b/src/hir/pattern.hpp index c7b0fe7d..4eefa181 100644 --- a/src/hir/pattern.hpp +++ b/src/hir/pattern.hpp @@ -52,6 +52,7 @@ struct Pattern (String, ::std::string), (Named, Path) ); + friend ::std::ostream& operator<<(::std::ostream& os, const Pattern::Value& x); TAGGED_UNION(Data, Any, // Irrefutable / destructuring @@ -108,6 +109,8 @@ struct Pattern PatternBinding m_binding; Data m_data; + + friend ::std::ostream& operator<<(::std::ostream& os, const Pattern& x); }; } |