/******************************************************************************
 * Copyright (c) 2000-2021 Ericsson Telecom AB
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v2.0
 * which accompanies this distribution, and is available at
 * https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
 *
 * Contributors:
 *   Balasko, Jeno
 *   Raduly, Csaba
 *
 ******************************************************************************/
module quitter3Q2 { //^In TTCN\-3 module `quitter3Q2'//
//
// A module with three errors. Quit after the second.
//
  type record R {
    integer i,
    charstring s
  }

  control { //^In control part//
    var R v_r := { z := true } //^In variable definition// \
    //^error: Reference to non-existent field `z' in record value for type// \
    //^Valid fields: i,s$//

    v_r := 42; //^In variable assignment:$// \
    //^error: Record value was expected for type//
    
    v_r := v_r + 1; /* no error reported here */
  }
}

