From cad221f454adceb12d74fc563788b3d8247e44f6 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Mon, 2 Mar 2015 12:25:00 +0100 Subject: represent nullability in doc model instead of appending ? to type name --- test/data/format/htmlEscaping.html | 2 +- test/data/format/nullability.kt | 5 +++++ test/data/format/nullability.md | 20 ++++++++++++++++++++ 3 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 test/data/format/nullability.kt create mode 100644 test/data/format/nullability.md (limited to 'test/data/format') diff --git a/test/data/format/htmlEscaping.html b/test/data/format/htmlEscaping.html index 52c69239..a485c08f 100644 --- a/test/data/format/htmlEscaping.html +++ b/test/data/format/htmlEscaping.html @@ -6,7 +6,7 @@ test / x

x

-fun <T> x(): T?
+fun <T> x(): T?

Special characters: < is "less than", > is "greater than", & is "ampersand"



diff --git a/test/data/format/nullability.kt b/test/data/format/nullability.kt new file mode 100644 index 00000000..d1d4545b --- /dev/null +++ b/test/data/format/nullability.kt @@ -0,0 +1,5 @@ +class C { + fun foo(): Comparable? { + return null + } +} diff --git a/test/data/format/nullability.md b/test/data/format/nullability.md new file mode 100644 index 00000000..ee50a0a5 --- /dev/null +++ b/test/data/format/nullability.md @@ -0,0 +1,20 @@ +[test](test/index) / [C](test/-c/index) + + +# C + +`class C<T>` + + + +### Constructors + + +| [<init>](test/-c/-init-) | `C()` | + + +### Functions + + +| [foo](test/-c/foo) | `fun foo(): Comparable<T>?` | + -- cgit