From ad1e7f6a6994a07fe02765d8fa5e1ff2c5cda124 Mon Sep 17 00:00:00 2001 From: Steven Johnson Date: Tue, 24 May 2022 11:31:02 -0700 Subject: [PATCH] Convert some assert-only usage of output_types() -> types() (#6779) --- tutorial/lesson_14_types.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tutorial/lesson_14_types.cpp b/tutorial/lesson_14_types.cpp index b43d13bf5e9d..571b03fa834c 100644 --- a/tutorial/lesson_14_types.cpp +++ b/tutorial/lesson_14_types.cpp @@ -79,12 +79,12 @@ int main(int argc, char **argv) { // You can also query any defined Func for the types it produces. Func f1; f1(x) = cast(x); - assert(f1.output_types()[0] == UInt(8)); + assert(f1.types()[0] == UInt(8)); Func f2; f2(x) = {x, sin(x)}; - assert(f2.output_types()[0] == Int(32) && - f2.output_types()[1] == Float(32)); + assert(f2.types()[0] == Int(32) && + f2.types()[1] == Float(32)); } // Type promotion rules.