From f5cd023f4d97a9be2507f2e033cb76b0aa41d50b Mon Sep 17 00:00:00 2001 From: aclement Date: Thu, 19 Nov 2009 17:01:23 +0000 Subject: [PATCH] new intertype syntax: testcode --- tests/features167/intertype/Five.java | 11 +++++++++++ tests/features167/intertype/Four.java | 10 ++++++++++ tests/features167/intertype/Simple.java | 6 ++++++ tests/features167/intertype/Six.java | 13 +++++++++++++ tests/features167/intertype/Three.java | 9 +++++++++ tests/features167/intertype/Two.java | 7 +++++++ 6 files changed, 56 insertions(+) create mode 100644 tests/features167/intertype/Five.java create mode 100644 tests/features167/intertype/Four.java create mode 100644 tests/features167/intertype/Simple.java create mode 100644 tests/features167/intertype/Six.java create mode 100644 tests/features167/intertype/Three.java create mode 100644 tests/features167/intertype/Two.java diff --git a/tests/features167/intertype/Five.java b/tests/features167/intertype/Five.java new file mode 100644 index 000000000..ac9f3eb77 --- /dev/null +++ b/tests/features167/intertype/Five.java @@ -0,0 +1,11 @@ +aspect Five { + intertype Target { + int i = 5; + } + public static void main(String[]argv) { + Target target = new Target(); + System.out.println(target.i); + } +} + +class Target {} diff --git a/tests/features167/intertype/Four.java b/tests/features167/intertype/Four.java new file mode 100644 index 000000000..ecdbf117d --- /dev/null +++ b/tests/features167/intertype/Four.java @@ -0,0 +1,10 @@ +aspect X { + intertype Target { + int i = 5; + } + public static void main(String[]argv) { + Target target = new Target(); + } +} + +class Target {} diff --git a/tests/features167/intertype/Simple.java b/tests/features167/intertype/Simple.java new file mode 100644 index 000000000..88f6b63a8 --- /dev/null +++ b/tests/features167/intertype/Simple.java @@ -0,0 +1,6 @@ +aspect X { + intertype Target { + } +} + +class Target {} diff --git a/tests/features167/intertype/Six.java b/tests/features167/intertype/Six.java new file mode 100644 index 000000000..2d2282d94 --- /dev/null +++ b/tests/features167/intertype/Six.java @@ -0,0 +1,13 @@ +aspect Six { + intertype Target { + int i = 5; + String j = "hello"; + } + public static void main(String[]argv) { + Target target = new Target(); + System.out.println(target.j); + System.out.println(target.i); + } +} + +class Target {} diff --git a/tests/features167/intertype/Three.java b/tests/features167/intertype/Three.java new file mode 100644 index 000000000..b824cb92d --- /dev/null +++ b/tests/features167/intertype/Three.java @@ -0,0 +1,9 @@ +aspect X { + intertype Target { + int i = 5; + } + public static void main(String[]argv) { + } +} + +class Target {} diff --git a/tests/features167/intertype/Two.java b/tests/features167/intertype/Two.java new file mode 100644 index 000000000..3e96cb36b --- /dev/null +++ b/tests/features167/intertype/Two.java @@ -0,0 +1,7 @@ +aspect X { + intertype Target { + int i = 5; + } +} + +class Target {} -- 2.39.5