Skip to content

Conversation

EgorkaKulikov
Copy link
Collaborator

@EgorkaKulikov EgorkaKulikov commented May 30, 2022

Some examples of the generated initializers

  1. Single line initializer
int[] intArray = {138, 138, -255};
  1. Multiline initializer
int[] intArray = { -255, -255, -255, -255, -255, 10, -255, -255, -255, -255, -255, -255, -255, -255, -254};
  1. Two-dimensional initializer
int[][] expected = new int[4][]; int[] intArray = {0, 0, 0}; expected[0] = intArray; int[] intArray1 = {0, 0, 0}; expected[1] = intArray1; int[] intArray2 = {0, 0, 0}; expected[2] = intArray2; int[] intArray3 = {0, 0, 0}; expected[3] = intArray3;
@EgorkaKulikov EgorkaKulikov requested a review from Damtev May 30, 2022 11:56
@EgorkaKulikov EgorkaKulikov linked an issue May 30, 2022 that may be closed by this pull request
@EgorkaKulikov EgorkaKulikov force-pushed the egor/arrays_initializers branch from 33c0855 to acf23b0 Compare May 31, 2022 10:01
Copy link
Member

@Damtev Damtev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please also provide an example of generated code with the array's initializer (including multiline)?

@EgorkaKulikov EgorkaKulikov force-pushed the egor/arrays_initializers branch from 0033aa8 to 07f4536 Compare May 31, 2022 13:08
@EgorkaKulikov EgorkaKulikov merged commit 8d3ad96 into main May 31, 2022
@EgorkaKulikov EgorkaKulikov deleted the egor/arrays_initializers branch May 31, 2022 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants